/***********************************************************************
 * Module:  ChiTietDonDatHang.cs
 * Author:  Tuan Nguyen
 * Purpose: Definition of the Class ChiTietDonDatHang
 ***********************************************************************/

using System;

public class ChiTietDonDatHang
{
   public int SoLuongDatHang;
   
   public NhanVien nhanVien;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public NhanVien GetNhanVien()
   {
      return nhanVien;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newNhanVien</param>
   public void SetNhanVien(NhanVien newNhanVien)
   {
      if (this.nhanVien != newNhanVien)
      {
         if (this.nhanVien != null)
         {
            NhanVien oldNhanVien = this.nhanVien;
            this.nhanVien = null;
            oldNhanVien.RemoveChiTietDonDatHang(this);
         }
         if (newNhanVien != null)
         {
            this.nhanVien = newNhanVien;
            this.nhanVien.AddChiTietDonDatHang(this);
         }
      }
   }
   public Banh banh;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public Banh GetBanh()
   {
      return banh;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newBanh</param>
   public void SetBanh(Banh newBanh)
   {
      if (this.banh != newBanh)
      {
         if (this.banh != null)
         {
            Banh oldBanh = this.banh;
            this.banh = null;
            oldBanh.RemoveChiTietDonDatHang(this);
         }
         if (newBanh != null)
         {
            this.banh = newBanh;
            this.banh.AddChiTietDonDatHang(this);
         }
      }
   }
   public QuayHang quayHang;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public QuayHang GetQuayHang()
   {
      return quayHang;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newQuayHang</param>
   public void SetQuayHang(QuayHang newQuayHang)
   {
      if (this.quayHang != newQuayHang)
      {
         if (this.quayHang != null)
         {
            QuayHang oldQuayHang = this.quayHang;
            this.quayHang = null;
            oldQuayHang.RemoveChiTietDonDatHang(this);
         }
         if (newQuayHang != null)
         {
            this.quayHang = newQuayHang;
            this.quayHang.AddChiTietDonDatHang(this);
         }
      }
   }
   public DonDatHang donDatHang;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public DonDatHang GetDonDatHang()
   {
      return donDatHang;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newDonDatHang</param>
   public void SetDonDatHang(DonDatHang newDonDatHang)
   {
      if (this.donDatHang != newDonDatHang)
      {
         if (this.donDatHang != null)
         {
            DonDatHang oldDonDatHang = this.donDatHang;
            this.donDatHang = null;
            oldDonDatHang.RemoveChiTietDonDatHang(this);
         }
         if (newDonDatHang != null)
         {
            this.donDatHang = newDonDatHang;
            this.donDatHang.AddChiTietDonDatHang(this);
         }
      }
   }
   public KhachHang khachHang;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public KhachHang GetKhachHang()
   {
      return khachHang;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newKhachHang</param>
   public void SetKhachHang(KhachHang newKhachHang)
   {
      if (this.khachHang != newKhachHang)
      {
         if (this.khachHang != null)
         {
            KhachHang oldKhachHang = this.khachHang;
            this.khachHang = null;
            oldKhachHang.RemoveChiTietDonDatHang(this);
         }
         if (newKhachHang != null)
         {
            this.khachHang = newKhachHang;
            this.khachHang.AddChiTietDonDatHang(this);
         }
      }
   }

}